package cn.rpc

trait RemoteMessage extends Serializable

// Worker -> Master
case class RegisterWorker(id: String, memory: Int, cores: Int) extends RemoteMessage

case class HeartBeat(id: String) extends RemoteMessage

// Master -> Worker
case class RegisteredWorker(masterURL: String) extends RemoteMessage

// Worker -> self
case object SendHeartBeat

// Master -> self
case object CheckTimeOutWorker



